import requests
import json

url = "https://www.wanandroid.com/banner/json"
headers = {"User-Agent": "Mozilla/5.0"}
print(f'start: {url}')

try:
    response = requests.get(url, headers=headers)
    data = response.json()
    if "data" in data and data["data"]:
        title = data["data"][0].get("title", "No Title Found")
        print(title)
    else:
        print("No data found")
except Exception as e:
    print(f"Error: {e}")

while True:
    print(title)